$(document).ready(function() {
    function getQueryParam(param) {
        var urlParams = new URLSearchParams(window.location.search);
        return urlParams.get(param);
    }

    var username = getQueryParam("userName");
    if (username) {
        $('#login-main').text("欢迎"+username);
    }
});